<template>
    <div class="master">
        <div class="manage">
            <div class="topCart">
                <div>
                    <h3>购物车(<span>{{ total }}</span>)</h3>
                    <span class="buttonM">管理</span>
                </div>
                <p>共{{ total }}件宝贝</p>
            </div>
        </div>
        <div class="cartList">
            <div class="goodCard">
                <div class="top">
                    <img :src="checkedF" alt="" class="checkBox">
                    <div>
                        {{ brand }}
                        <van-icon name="arrow" size="0.2rem" color="#999999"/>
                    </div>
                </div>
                <div class="bottom">
                    <div class="left">

                        <img :src="checkedF" alt="" class="checkBox">
                    </div>
                    <van-card
           
                    price="2.00"
                    desc="描述信息"
                    title="商品标题"
                    thumb="https://img01.yzcdn.cn/vant/ipad.jpeg"
                    >
                        <template #footer>
                            <button class="reduce">-</button>
                            <button class="add">+</button>
                        </template>
                        <template #num>
                            <aside>{{ num }}</aside>
                        </template>
                    </van-card>
                </div>
            </div>
        </div>
        <van-submit-bar :price="3050" button-text="提交订单" @submit="onSubmit">
            <img :src="checkedF" alt="" class="checkBox">
            全选
        </van-submit-bar>

    </div>
</template>

<script>
export default {
    name:"cartMaster",
    data(){ 
        return {
            total:0,
            checkedT:"https://gw.alicdn.com/imgextra/i1/O1CN01f4WbCH1mWdz5Xv7r6_!!6000000004962-2-tps-68-68.png_.webp",
            checkedF:"https://gw.alicdn.com/imgextra/i4/O1CN01n2cA5V27Na50ntonn_!!6000000007785-2-tps-68-68.png_.webp",
            brand: "酒",
            num:2
        }
    },
    methods:{
        onSubmit(){
            
        }
    }
}
</script>

<style lang="scss" scoped>
    .master {
        width: 100%;
       
    }
    .master .manage {
        width: 100%;
        height: 3.52rem;
        background: linear-gradient(90deg,#ff8200,#ff5000);
        overflow: hidden;
      
    }
    .master .manage .topCart {
        width: 7.04rem;
        height: 1.11rem;
        margin: 0.38rem auto 0;
    }
    .master .manage .topCart>div {
        display: flex;
        justify-content: space-between;
        font-size: 0.4rem;
        color: #fff;
        margin-bottom: 0.32rem;
    }
    .master .manage .topCart>div .bottonM {
        font-size: 0.28rem;
    }
    .master .manage .topCart>p {
        font-size: 0.24rem;
        color: #fff;
    } 
    .master .cartList {
        width: 7.04rem;
        height: 5rem;

        position: relative;
        top: -1.35rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .master .cartList .goodCard {
        width: 7.04rem;
        border-radius: 0.2rem;
        background: #fff;
        overflow: hidden;
    }
    .master .cartList .goodCard .checkBox {
        width: 0.42rem;
        height: 0.42rem;
    } 
    .master .cartList .goodCard .top {
        display: flex;
        align-items: center;
        width: 100%;
        height: 0.81rem;
        border-bottom: 0.01rem solid #ffdfc2;

    }
    .master .cartList .goodCard .top .checkBox {
        margin-left: 0.24rem;
    }
    .master .cartList .goodCard .top div {
        margin-left: 0.3rem;
        font-size: 0.26rem;
        color: #333333;
    }
    .van-icon {
        font-weight: bold;
    }
    .master .cartList .goodCard .bottom {
        display: flex;
        background: #ffffff;
    }
    .master .cartList .goodCard .bottom .left {
        width: 0.9rem;
        display: flex;
        justify-content: center;

    }
    .master .cartList .goodCard .bottom .left .checkBox {
        margin-top: 0.8rem;
    }
    .master .cartList .goodCard .bottom .van-card {
        width: calc(7.04rem - 0.9rem);
        margin-top: 0;
        background: #fff;
    }
    .master .cartList .goodCard .bottom .reduce {
        width: 0.45rem;
        height: 0.45rem;
        box-sizing: border-box;
        border: 0.01rem solid #eeeeee;
        background: #fff;
        border-radius: 0.08rem;
    }
    .master .cartList .goodCard .bottom .add {
        width: 0.45rem;
        height: 0.45rem;
        box-sizing: border-box;
        border: 0.01rem solid #eeeeee;
        background: #fff;
        border-radius: 0.08rem;
        margin-left: 0.8rem;
    }
    .master .cartList .goodCard .bottom .van-card aside{
        width: 0.8rem;
        height: 0.45rem;
        box-sizing: border-box;
        border: 0.01rem solid #eee;
        text-align: center;
        position: absolute;
        right: 0.45rem;
        bottom: -0.45rem;
    }
    .van-submit-bar {
        margin-bottom: 0.89rem;
    }
    .van-submit-bar .checkBox {
        width: 0.42rem;
        height: 0.42rem;
    }
</style>